package cmo.neutech.day10.HomeWork.d4;

public class SalesEmployee extends ColaEmployee{
    int salMonth;
    double comRate;
    public SalesEmployee(String name,int month,int salMonth,double comRate)
    {
        super(name,month);
        this.salMonth = salMonth;
        this.comRate = comRate;
    }
    public int getSalary(int month)
    {
        return (int)(getSalMonth(month)+salMonth*comRate);
    }
}
